Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My api
blog and Updates

It's my personal blog and my post about what was my interested in. Not regularly. If you have any questions any discussion, I'm happy you get in touch with me, and try to answer as many as possible!

Blog
Let's See
Back to blog
Filter by:
Tags
//Article

Writing Webhooks You Can Trust: A Laravel Guide to Receiving Them Safely

Writing Webhooks You Can Trust: A Laravel Guide to Receiving Them Safely

Blog Summary

A webhook endpoint is a public URL that changes your data, so anyone who finds it can try. Here's how to receive webhooks safely in Laravel 12: verify signatures, block replays, store first, process on a queue, and handle duplicates.

Read more
  • 140
  • 46
  • 22

Clean Error Handling in Laravel APIs: One Format, No Leaked Stack Traces

Clean Error Handling in Laravel APIs: One Format, No Leaked Stack Traces

Blog Summary

Your API's happy path is tidy. Its errors are a mix of HTML pages, stack traces and five different JSON shapes. Here's how to give every Laravel 12 API error one predictable format, from bootstrap/app.php.

Read more
  • 120
  • 146
  • 21

JWT vs Sessions vs API Keys: Which One to Use, and When

JWT vs Sessions vs API Keys: Which One to Use, and When

Blog Summary

"We use JWT" is often the answer for the web app, the mobile app and the partner integration alike. Sessions, JWTs and API keys solve different problems; here's how to tell which one each caller needs.

Read more
  • 64
  • 83
  • 17

A Clean Project Structure for TypeScript and Node.js API Services

A Clean Project Structure for TypeScript and Node.js API Services

Blog Summary

Node gives you no folder structure, so every API ends up shaped differently. Here's a simple layout that scales: routes, services and repositories, validated config, typed errors, Jest tests that don't need a server, and a lean Dockerfile.

Read more
  • 96
  • 77
  • 4

Building a REST API in Laravel 12 With OpenAPI Docs That Stay Accurate

Building a REST API in Laravel 12 With OpenAPI Docs That Stay Accurate

Blog Summary

An API without docs gets used wrongly; an API with outdated docs is worse. Here's a step-by-step Laravel 12 REST API with routes, Form Requests and Resources, plus two ways to generate OpenAPI docs that keep up with the code.

Read more
  • 143
  • 40
  • 7

Laravel Sanctum vs Passport: Which Auth Package Do You Actually Need?

Laravel Sanctum vs Passport: Which Auth Package Do You Actually Need?

Blog Summary

Sanctum and Passport both issue tokens, so people pick one at random. One question decides it: will apps you don't own access your users' data? Cookie SPAs, mobile tokens and OAuth, explained with code.

Read more
  • 84
  • 113
  • 19

01. About Shiroz

Mohammed Shiroz

Hi, I'm Mohammed Shiroz, a software engineer and AI enthusiast from Sri Lanka who turns ideas into intelligent, real-world solutions. With over 9 years of hands-on experience, I currently lead real estate ERP development at Kate Group, a...

03.My Projects

04. Categories

Ready To Start Your Project ?

Get in Touch
Close